import request from '@/utils/request'

// export function getEmployeeSimple() {
//   return request({
//     url: '/sys/user/simple',
//     method: 'get'
//   })
// }
export const getEmployeesSimple = () => request.get('/sys/user/simple')

/**
 * 获取员工列表
 * @param {page,size} params
 * @returns
 */
export function getEmployees(params) {
  return request({
    url: '/sys/user',
    params
  })
}

/**
 * 新增员工
 * @param {*} data
 * @returns
 */
export function addEmployees(data) {
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}
